package com.lxw.study.creational.abstractfactory.case2;

public class WindowsComputer implements Computer {
    private OperatingSystem operatingSystem;

    @Override
    public OperatingSystem getOperatingSystem() {
        return operatingSystem;
    }

    @Override
    public void setOperatingSystem(OperatingSystem operatingSystem) {
        this.operatingSystem = operatingSystem;
    }

    @Override
    public void displayInfo() {
        System.out.println("Windows computer 安装 "+operatingSystem.getInfo());
    }
}
